package com.hospital.common.exceptions;

import lombok.Data;

/**
 * @ClassName:
 * @Description:
 * @Author: 孙君岑
 */
@Data
public class ServiceException extends RuntimeException {

    /**
     * 提示错误信息
     */
    private String message;
    private Integer code;

    public ServiceException(String message) {
        this.message = message;
    }

    public ServiceException(String message, Integer code) {
        this.message = message;
        this.code = code;
    }
}
